import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
import ScanPage from './views/ScanPage.vue'
import TablePage from './views/TablePage.vue'
import PeoplePage from './views/PeoplePage.vue'
import MenuPage from './views/MenuPage.vue'
import CheckoutPage from './views/CheckoutPage.vue'
import DeliveryPage from './views/DeliveryPage.vue'
import PaymentPage from './views/PaymentPage.vue'
import OrdersPage from './views/OrdersPage.vue'

const routes = [
  { path: '/', component: ScanPage },
  { path: '/table', component: TablePage },
  { path: '/people', component: PeoplePage },
  { path: '/menu', component: MenuPage },
  { path: '/checkout', component: CheckoutPage },
  { path: '/delivery', component: DeliveryPage },
  { path: '/payment', component: PaymentPage },
  { path: '/orders', component: OrdersPage }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router